#define  _CRT_SECURE_NO_WARNINGS 1
#include <math.h>
int prime_number(int num)
{

	int half = sqrt(num);
	for (int i = 2; i <= half; i++)
	{
		if (num % i == 0)
		{
			return 0;
		}

	}
	return 1;
}